{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n// deps-lint-skip-all\nimport { Keyframes } from '@ant-design/cssinjs';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nvar genMessageStyle = function genMessageStyle(token) {\n  var _Object$assign, _$concat;\n  var componentCls = token.componentCls,\n    iconCls = token.iconCls,\n    boxShadowSecondary = token.boxShadowSecondary,\n    colorBgElevated = token.colorBgElevated,\n    colorSuccess = token.colorSuccess,\n    colorError = token.colorError,\n    colorWarning = token.colorWarning,\n    colorInfo = token.colorInfo,\n    fontSizeLG = token.fontSizeLG,\n    motionEaseInOutCirc = token.motionEaseInOutCirc,\n    motionDurationSlow = token.motionDurationSlow,\n    marginXS = token.marginXS,\n    paddingXS = token.paddingXS,\n    borderRadiusLG = token.borderRadiusLG,\n    zIndexPopup = token.zIndexPopup,\n    messageNoticeContentPadding = token.messageNoticeContentPadding;\n  var messageMoveIn = new Keyframes('MessageMoveIn', {\n    '0%': {\n      padding: 0,\n      transform: 'translateY(-100%)',\n      opacity: 0\n    },\n    '100%': {\n      padding: paddingXS,\n      transform: 'translateY(0)',\n      opacity: 1\n    }\n  });\n  var messageMoveOut = new Keyframes('MessageMoveOut', {\n    '0%': {\n      maxHeight: token.height,\n      padding: paddingXS,\n      opacity: 1\n    },\n    '100%': {\n      maxHeight: 0,\n      padding: 0,\n      opacity: 0\n    }\n  });\n  return [// ============================ Holder ============================\n  _defineProperty({}, componentCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    position: 'fixed',\n    top: marginXS,\n    width: '100%',\n    pointerEvents: 'none',\n    zIndex: zIndexPopup\n  }, _defineProperty(_Object$assign, \"\".concat(componentCls, \"-move-up\"), {\n    animationFillMode: 'forwards'\n  }), _defineProperty(_Object$assign, \"\\n        \".concat(componentCls, \"-move-up-appear,\\n        \").concat(componentCls, \"-move-up-enter\\n      \"), {\n    animationName: messageMoveIn,\n    animationDuration: motionDurationSlow,\n    animationPlayState: 'paused',\n    animationTimingFunction: motionEaseInOutCirc\n  }), _defineProperty(_Object$assign, \"\\n        \".concat(componentCls, \"-move-up-appear\").concat(componentCls, \"-move-up-appear-active,\\n        \").concat(componentCls, \"-move-up-enter\").concat(componentCls, \"-move-up-enter-active\\n      \"), {\n    animationPlayState: 'running'\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-move-up-leave\"), {\n    animationName: messageMoveOut,\n    animationDuration: motionDurationSlow,\n    animationPlayState: 'paused',\n    animationTimingFunction: motionEaseInOutCirc\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-move-up-leave\").concat(componentCls, \"-move-up-leave-active\"), {\n    animationPlayState: 'running'\n  }), _defineProperty(_Object$assign, '&-rtl', {\n    direction: 'rtl',\n    span: {\n      direction: 'rtl'\n    }\n  }), _Object$assign))), // ============================ Notice ============================\n  _defineProperty({}, \"\".concat(componentCls, \"-notice\"), (_$concat = {\n    padding: paddingXS,\n    textAlign: 'center'\n  }, _defineProperty(_$concat, iconCls, {\n    verticalAlign: 'text-bottom',\n    marginInlineEnd: marginXS,\n    fontSize: fontSizeLG\n  }), _defineProperty(_$concat, \"\".concat(componentCls, \"-notice-content\"), {\n    display: 'inline-block',\n    padding: messageNoticeContentPadding,\n    background: colorBgElevated,\n    borderRadius: borderRadiusLG,\n    boxShadow: boxShadowSecondary,\n    pointerEvents: 'all'\n  }), _defineProperty(_$concat, \"\".concat(componentCls, \"-success \").concat(iconCls), {\n    color: colorSuccess\n  }), _defineProperty(_$concat, \"\".concat(componentCls, \"-error \").concat(iconCls), {\n    color: colorError\n  }), _defineProperty(_$concat, \"\".concat(componentCls, \"-warning \").concat(iconCls), {\n    color: colorWarning\n  }), _defineProperty(_$concat, \"\\n        \".concat(componentCls, \"-info \").concat(iconCls, \",\\n        \").concat(componentCls, \"-loading \").concat(iconCls), {\n    color: colorInfo\n  }), _$concat)), // ============================= Pure =============================\n  _defineProperty({}, \"\".concat(componentCls, \"-notice-pure-panel\"), {\n    padding: 0,\n    textAlign: 'start'\n  })];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Message', function (token) {\n  // Gen-style functions here\n  var combinedToken = mergeToken(token, {\n    messageNoticeContentPadding: \"\".concat((token.controlHeightLG - token.fontSize * token.lineHeight) / 2, \"px \").concat(token.paddingSM, \"px\")\n  });\n  return [genMessageStyle(combinedToken)];\n}, function (token) {\n  return {\n    height: 150,\n    zIndexPopup: token.zIndexPopupBase + 10\n  };\n});","map":{"version":3,"names":["Keyframes","genComponentStyleHook","mergeToken","resetComponent","genMessageStyle","token","componentCls","iconCls","boxShadowSecondary","colorBgElevated","colorSuccess","colorError","colorWarning","colorInfo","fontSizeLG","motionEaseInOutCirc","motionDurationSlow","marginXS","paddingXS","borderRadiusLG","zIndexPopup","messageNoticeContentPadding","messageMoveIn","padding","transform","opacity","messageMoveOut","maxHeight","height","Object","assign","position","top","width","pointerEvents","zIndex","animationFillMode","animationName","animationDuration","animationPlayState","animationTimingFunction","direction","span","textAlign","verticalAlign","marginInlineEnd","fontSize","display","background","borderRadius","boxShadow","color","combinedToken","controlHeightLG","lineHeight","paddingSM","zIndexPopupBase"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/message/style/index.js"],"sourcesContent":["// deps-lint-skip-all\nimport { Keyframes } from '@ant-design/cssinjs';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nconst genMessageStyle = token => {\n  const {\n    componentCls,\n    iconCls,\n    boxShadowSecondary,\n    colorBgElevated,\n    colorSuccess,\n    colorError,\n    colorWarning,\n    colorInfo,\n    fontSizeLG,\n    motionEaseInOutCirc,\n    motionDurationSlow,\n    marginXS,\n    paddingXS,\n    borderRadiusLG,\n    zIndexPopup,\n    // Custom token\n    messageNoticeContentPadding\n  } = token;\n  const messageMoveIn = new Keyframes('MessageMoveIn', {\n    '0%': {\n      padding: 0,\n      transform: 'translateY(-100%)',\n      opacity: 0\n    },\n    '100%': {\n      padding: paddingXS,\n      transform: 'translateY(0)',\n      opacity: 1\n    }\n  });\n  const messageMoveOut = new Keyframes('MessageMoveOut', {\n    '0%': {\n      maxHeight: token.height,\n      padding: paddingXS,\n      opacity: 1\n    },\n    '100%': {\n      maxHeight: 0,\n      padding: 0,\n      opacity: 0\n    }\n  });\n  return [\n  // ============================ Holder ============================\n  {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'fixed',\n      top: marginXS,\n      width: '100%',\n      pointerEvents: 'none',\n      zIndex: zIndexPopup,\n      [`${componentCls}-move-up`]: {\n        animationFillMode: 'forwards'\n      },\n      [`\n        ${componentCls}-move-up-appear,\n        ${componentCls}-move-up-enter\n      `]: {\n        animationName: messageMoveIn,\n        animationDuration: motionDurationSlow,\n        animationPlayState: 'paused',\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`\n        ${componentCls}-move-up-appear${componentCls}-move-up-appear-active,\n        ${componentCls}-move-up-enter${componentCls}-move-up-enter-active\n      `]: {\n        animationPlayState: 'running'\n      },\n      [`${componentCls}-move-up-leave`]: {\n        animationName: messageMoveOut,\n        animationDuration: motionDurationSlow,\n        animationPlayState: 'paused',\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`${componentCls}-move-up-leave${componentCls}-move-up-leave-active`]: {\n        animationPlayState: 'running'\n      },\n      '&-rtl': {\n        direction: 'rtl',\n        span: {\n          direction: 'rtl'\n        }\n      }\n    })\n  },\n  // ============================ Notice ============================\n  {\n    [`${componentCls}-notice`]: {\n      padding: paddingXS,\n      textAlign: 'center',\n      [iconCls]: {\n        verticalAlign: 'text-bottom',\n        marginInlineEnd: marginXS,\n        fontSize: fontSizeLG\n      },\n      [`${componentCls}-notice-content`]: {\n        display: 'inline-block',\n        padding: messageNoticeContentPadding,\n        background: colorBgElevated,\n        borderRadius: borderRadiusLG,\n        boxShadow: boxShadowSecondary,\n        pointerEvents: 'all'\n      },\n      [`${componentCls}-success ${iconCls}`]: {\n        color: colorSuccess\n      },\n      [`${componentCls}-error ${iconCls}`]: {\n        color: colorError\n      },\n      [`${componentCls}-warning ${iconCls}`]: {\n        color: colorWarning\n      },\n      [`\n        ${componentCls}-info ${iconCls},\n        ${componentCls}-loading ${iconCls}`]: {\n        color: colorInfo\n      }\n    }\n  },\n  // ============================= Pure =============================\n  {\n    [`${componentCls}-notice-pure-panel`]: {\n      padding: 0,\n      textAlign: 'start'\n    }\n  }];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Message', token => {\n  // Gen-style functions here\n  const combinedToken = mergeToken(token, {\n    messageNoticeContentPadding: `${(token.controlHeightLG - token.fontSize * token.lineHeight) / 2}px ${token.paddingSM}px`\n  });\n  return [genMessageStyle(combinedToken)];\n}, token => ({\n  height: 150,\n  zIndexPopup: token.zIndexPopupBase + 10\n}));"],"mappings":";AAAA;AACA,SAASA,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,cAAc,QAAQ,aAAa;AAC5C,IAAMC,eAAe,GAAG,SAAlBA,eAAe,CAAGC,KAAK,EAAI;EAAA;EAC/B,IACEC,YAAY,GAiBVD,KAAK,CAjBPC,YAAY;IACZC,OAAO,GAgBLF,KAAK,CAhBPE,OAAO;IACPC,kBAAkB,GAehBH,KAAK,CAfPG,kBAAkB;IAClBC,eAAe,GAcbJ,KAAK,CAdPI,eAAe;IACfC,YAAY,GAaVL,KAAK,CAbPK,YAAY;IACZC,UAAU,GAYRN,KAAK,CAZPM,UAAU;IACVC,YAAY,GAWVP,KAAK,CAXPO,YAAY;IACZC,SAAS,GAUPR,KAAK,CAVPQ,SAAS;IACTC,UAAU,GASRT,KAAK,CATPS,UAAU;IACVC,mBAAmB,GAQjBV,KAAK,CARPU,mBAAmB;IACnBC,kBAAkB,GAOhBX,KAAK,CAPPW,kBAAkB;IAClBC,QAAQ,GAMNZ,KAAK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